var testRoutes = {
    routes: [{
            path: '/user',
            component: '../layouts/UserLayout',
            routes: [{
                    name: 'login',
                    icon: 'smile',
                    path: '/user/login',
                    component: './user/login',
                },
                {
                    name: 'register-result',
                    icon: 'smile',
                    path: '/user/register-result',
                    component: './user/register-result',
                },
                {
                    name: 'register',
                    icon: 'smile',
                    path: '/user/register',
                    component: './user/register',
                },
                {
                    component: '404',
                },
            ],
        },
        {
            name: 'menu-config',
            icon: 'smile',
            path: '/menuConfig',
            component: './menuConfig',
        },
        {
            path: '/dashboard',
            name: 'Dashboard',
            icon: 'smile',
            routes: [{
                path: '/dashboard/overView',
                name: 'Overview',
                component: './dashboard/overview',
            }],
        },
        {
            path: '/brocade',
            name: 'Brocade',
            routes: [{
                    path: '/brocade/dashboard',
                    name: 'Dashboard',
                    icon: 'smile',
                    component: '/src/pages/brocade/dashboard',
                },
                {
                    path: '/brocade/configuration',
                    name: 'Configuration',
                    component: '/src/pages/brocade/configuration',
                },
                {
                    path: '/brocade/detail',
                    name: 'Detail',
                    component: '/src/pages/brocade/detail',
                },
            ],
        },
    ],
}


export default {
    '/api/auth_routes': {
        '/form/advanced-form': {
            authority: ['admin', 'user'],
        },
    },
    //定义接口 和返回的数据,testRoutes 就是返回的数据
    'GET /api/getCustomRoute': testRoutes
};